package com.znf4.platform.resource.human.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.platform.resource.human.entity.Human;
import com.znf4.platform.resource.human.mapper.HumanMapper;
import com.znf4.platform.resource.human.server.HumanServer;

@Service
public class HumanServerImpl implements HumanServer {
	
	@Autowired
	private HumanMapper humanMapper ;
	
	

	public void addHuman(Human human) {
		humanMapper.insert(human);
		
	}

	public void updateHuman(Human human) {
		humanMapper.update(human);
		
	}

	public void delOneHuman(Human human) {
		humanMapper.deleteOne(human);
		
	}

	public void delAllHuman(List<Human> list) {
		humanMapper.deleteAll(list);
		
	}

	public Human queryOne(Human human) {
		return humanMapper.queryOne(human);
	}

	public List<Human> queryAll(Human human) {
		return humanMapper.queryAll(human);
		
	}
	

	
	

	
	
	
	
	
	

}
